﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002AF RID: 687
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueSelectCellCsReq : IMessage<ChessRogueSelectCellCsReq>, IMessage, IEquatable<ChessRogueSelectCellCsReq>, IDeepCloneable<ChessRogueSelectCellCsReq>, IBufferMessage
	{
		// Token: 0x170008EE RID: 2286
		// (get) Token: 0x06001EC3 RID: 7875 RVA: 0x000578FD File Offset: 0x00055AFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueSelectCellCsReq> Parser
		{
			get
			{
				return ChessRogueSelectCellCsReq._parser;
			}
		}

		// Token: 0x170008EF RID: 2287
		// (get) Token: 0x06001EC4 RID: 7876 RVA: 0x00057904 File Offset: 0x00055B04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueSelectCellCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170008F0 RID: 2288
		// (get) Token: 0x06001EC5 RID: 7877 RVA: 0x00057916 File Offset: 0x00055B16
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueSelectCellCsReq.Descriptor;
			}
		}

		// Token: 0x06001EC6 RID: 7878 RVA: 0x0005791D File Offset: 0x00055B1D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSelectCellCsReq()
		{
		}

		// Token: 0x06001EC7 RID: 7879 RVA: 0x00057925 File Offset: 0x00055B25
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSelectCellCsReq(ChessRogueSelectCellCsReq other) : this()
		{
			this.cellId_ = other.cellId_;
			this.selectMonsterId_ = other.selectMonsterId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001EC8 RID: 7880 RVA: 0x00057956 File Offset: 0x00055B56
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueSelectCellCsReq Clone()
		{
			return new ChessRogueSelectCellCsReq(this);
		}

		// Token: 0x170008F1 RID: 2289
		// (get) Token: 0x06001EC9 RID: 7881 RVA: 0x0005795E File Offset: 0x00055B5E
		// (set) Token: 0x06001ECA RID: 7882 RVA: 0x00057966 File Offset: 0x00055B66
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CellId
		{
			get
			{
				return this.cellId_;
			}
			set
			{
				this.cellId_ = value;
			}
		}

		// Token: 0x170008F2 RID: 2290
		// (get) Token: 0x06001ECB RID: 7883 RVA: 0x0005796F File Offset: 0x00055B6F
		// (set) Token: 0x06001ECC RID: 7884 RVA: 0x00057977 File Offset: 0x00055B77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SelectMonsterId
		{
			get
			{
				return this.selectMonsterId_;
			}
			set
			{
				this.selectMonsterId_ = value;
			}
		}

		// Token: 0x06001ECD RID: 7885 RVA: 0x00057980 File Offset: 0x00055B80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueSelectCellCsReq);
		}

		// Token: 0x06001ECE RID: 7886 RVA: 0x0005798E File Offset: 0x00055B8E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueSelectCellCsReq other)
		{
			return other != null && (other == this || (this.CellId == other.CellId && this.SelectMonsterId == other.SelectMonsterId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001ECF RID: 7887 RVA: 0x000579CC File Offset: 0x00055BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CellId != 0U)
			{
				num ^= this.CellId.GetHashCode();
			}
			if (this.SelectMonsterId != 0U)
			{
				num ^= this.SelectMonsterId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001ED0 RID: 7888 RVA: 0x00057A24 File Offset: 0x00055C24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001ED1 RID: 7889 RVA: 0x00057A2C File Offset: 0x00055C2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001ED2 RID: 7890 RVA: 0x00057A38 File Offset: 0x00055C38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CellId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.CellId);
			}
			if (this.SelectMonsterId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.SelectMonsterId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001ED3 RID: 7891 RVA: 0x00057A94 File Offset: 0x00055C94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CellId);
			}
			if (this.SelectMonsterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SelectMonsterId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001ED4 RID: 7892 RVA: 0x00057AEC File Offset: 0x00055CEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueSelectCellCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CellId != 0U)
			{
				this.CellId = other.CellId;
			}
			if (other.SelectMonsterId != 0U)
			{
				this.SelectMonsterId = other.SelectMonsterId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001ED5 RID: 7893 RVA: 0x00057B3C File Offset: 0x00055D3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001ED6 RID: 7894 RVA: 0x00057B48 File Offset: 0x00055D48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 24U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.SelectMonsterId = input.ReadUInt32();
					}
				}
				else
				{
					this.CellId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04000CA6 RID: 3238
		private static readonly MessageParser<ChessRogueSelectCellCsReq> _parser = new MessageParser<ChessRogueSelectCellCsReq>(() => new ChessRogueSelectCellCsReq());

		// Token: 0x04000CA7 RID: 3239
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000CA8 RID: 3240
		public const int CellIdFieldNumber = 3;

		// Token: 0x04000CA9 RID: 3241
		private uint cellId_;

		// Token: 0x04000CAA RID: 3242
		public const int SelectMonsterIdFieldNumber = 9;

		// Token: 0x04000CAB RID: 3243
		private uint selectMonsterId_;
	}
}
